<?php

namespace app\rental\controller;

use cmf\controller\HomeBaseController;
use app\rental\model\RentalBrandModel;
use app\rental\model\RentalPriceRangeModel;
use app\rental\model\RentalRankModel;
use app\rental\model\RentalCategoryModel;

class IndexController extends HomeBaseController
{
    public function index()
    {
        $rentalBrandModel = new RentalBrandModel();
        $this->assign("brands", $rentalBrandModel->getBrands());
        $rentalPriceRangeModel = new RentalPriceRangeModel();
        $this->assign("price_ranges", $rentalPriceRangeModel->getPriceRange());
        $rentalRankModel = new RentalRankModel();
        $this->assign("ranks", $rentalRankModel->getRank());
        $rentalCategoryModel = new RentalCategoryModel();
        $this->assign("categorys", $rentalCategoryModel->getIndexCategorys());
        return $this->fetch(':index');
    }




}
